//导入request.js请求工具
import request from "@/utils/request.js";

//提供调用书评列表的函数
export const noteListService = (query) => {
  return request.get("/note",{params: query});
};

//提供调用修改书评状态的函数
export const noteUpdateService = (id,status) => {
  return request.put(`/note/${id}/${status}`);
};
//提供调用批量修改书评状态的函数
export const noteUpdateBatchService = (ids, status) => {
  return request.put("/note/batch-update",{
    ids,
    status
  });
};

